package 图书系统.user;

import 图书系统.user.book.BookList;
import 图书系统.user.operation.IOperation;

public abstract class User {
    protected String name;
    public IOperation[]arr;//都有这个数组

    //给name赋值
    public User(String name) {
        this.name = name;
    }

    public void setArr(IOperation[] arr) {
        this.arr = arr;
    }
    public abstract int menu();
    public void iOperation(int tmp, BookList bookList){
        this.arr[tmp].work(bookList);
    }
}
